package com.xoa.model.workflow;

import com.xoa.model.enclosure.Attachment;

import java.util.List;

public class FlowRun {
	/** 主键ID **/
	private int rid;
	/** 流程实例ID **/
	private int runId;
	/** 流程实例名称 **/
	private String runName;
	/** 流程ID **/
	private int flowId;
	/** 流程发起人ID **/
	private String beginUser;
	/** 流程发起人部门ID **/
	private int beginDept;
	/** 流程实例创建时间 **/
	private String beginTime;
	/** 流程实例结束时间 **/
	private String endTime;
	/** 附件ID串 **/
	private String attachmentId;
	/** 附件名称串 **/
	private String attachmentName;
	/** 删除标记(0-未删除,1-已删除)删除后流程实例可在工作销毁中确实删除或还原 **/
	private String delFlag;
	/** 关注该流程的用户 **/
	private String focusUser;
	/** 父流程ID **/
	private int parentRun;
	/** 父流程名称 **/
	private String parentRunName;
	/** 已废弃，改为FLOW_RUN_PRCS表中记录 **/
	private String fromUser;
	/** 相关的版式文件信息 **/
	private String aipFiles;
	/** 待定 **/
	private String preSet;
	/** 传阅人ID串工作办理结束时选择的传阅人 **/
	private String viewUser;
	/** 是否归档(0-否,1-是) **/
	private int archive;
	/** 强制结束信息 **/
	private String forceOver;
	/** 工作等级 0-普通 1-重要 2-紧急 **/
	private int workLevel;
	/** 删除时间 **/
	private String delTime;
    /**附件是否可下载**/
	private String ATTACH_PRIV ;
	/**
	 * flowSort
	 */
	private String sortMainType;//区分工作流与公文传阅

	/**
	 * flowrunread
	 */
	private String createDate;//传阅创建时间

	private String tableId;//公文唯一Id
	//主办人添加的关联流程工作
	private String relationRunIds;
	/**
	 * 流程表
	 */
	private FlowTypeModel flowTypeModel;

	private String userName;

	private String uid;

	private String prcsId;
	private String parent; //上一步骤flowPrcs

	/**
	 * 预设后续步骤经办人串
	 */
	private String presetUser;

	public String getPresetUser() {
		return presetUser;
	}

	public void setPresetUser(String presetUser) {
		this.presetUser = presetUser;
	}

	public String getParent() {
		return parent;
	}

	public void setParent(String parent) {
		this.parent = parent;
	}
	public String getPrcsFlag() {
		return prcsFlag;
	}

	public void setPrcsFlag(String prcsFlag) {
		this.prcsFlag = prcsFlag;
	}

	private String prcsFlag;
	private String flowPrcs;
	//记录是否可以删除此条关联工作
	private String isDelete ;
	//此流程中所有的经办人和主办人（排除交办人）
	private String allUserName ;
	public String getIsDelete() {
		return isDelete;
	}

	public String getAllUserName() {
		return allUserName;
	}

	public void setAllUserName(String allUserName) {
		this.allUserName = allUserName;
	}

	public void setIsDelete(String isDelete) {
		this.isDelete = isDelete;
	}

	public String getRelationRunIds() {
		return relationRunIds;
	}

	public void setRelationRunIds(String relationRunIds) {
		this.relationRunIds = relationRunIds;
	}

	public String getPrcsId() {
		return prcsId;
	}

	public void setPrcsId(String prcsId) {
		this.prcsId = prcsId;
	}

	public String getFlowPrcs() {
		return flowPrcs;
	}

	public void setFlowPrcs(String flowPrcs) {
		this.flowPrcs = flowPrcs;
	}

	//李然改↓
	private List<Attachment> attachments;

	public List<Attachment> getAttachments() {
		return attachments;
	}

	public String getParentRunName() {
		return parentRunName;
	}

	public void setParentRunName(String parentRunName) {
		this.parentRunName = parentRunName;
	}

	public void setAttachments(List<Attachment> attachments) {
		this.attachments = attachments;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public int getRid() {
		return rid;
	}
	public void setRid(int rid) {
		this.rid = rid;
	}
	public int getRunId() {
		return runId;
	}
	public void setRunId(int runId) {
		this.runId = runId;
	}
	public String getRunName() {
		return runName==null?"":runName;
	}
	public void setRunName(String runName) {
		this.runName = runName;
	}
	public int getFlowId() {
		return flowId;
	}
	public void setFlowId(int flowId) {
		this.flowId = flowId;
	}
	public String getBeginUser() {
		return beginUser==null?"":beginUser;
	}
	public void setBeginUser(String beginUser) {
		this.beginUser = beginUser;
	}
	public int getBeginDept() {
		return beginDept;
	}
	public void setBeginDept(int beginDept) {
		this.beginDept = beginDept;
	}
	public String getBeginTime() {
		return beginTime==null?"":beginTime;
	}
	public void setBeginTime(String beginTime) {
		this.beginTime = beginTime;
	}
	public String getEndTime() {
		return endTime==null?null:endTime;
	}
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	public String getAttachmentId() {
		return attachmentId==null?"":attachmentId.trim();
	}
	public void setAttachmentId(String attachmentId) {
		this.attachmentId = attachmentId;
	}
	public String getAttachmentName() {
		return attachmentName==null?"":attachmentName.trim();
	}
	public void setAttachmentName(String attachmentName) {
		this.attachmentName = attachmentName;
	}
	public String getDelFlag() {
		return delFlag==null?"":delFlag;
	}
	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}
	public String getFocusUser() {
		return focusUser==null?"":focusUser;
	}
	public void setFocusUser(String focusUser) {
		this.focusUser = focusUser;
	}
	public int getParentRun() {
		return parentRun;
	}
	public void setParentRun(int parentRun) {
		this.parentRun = parentRun;
	}
	public String getFromUser() {
		return fromUser==null?"":fromUser.trim();
	}
	public void setFromUser(String fromUser) {
		this.fromUser = fromUser;
	}
	public String getAipFiles() {
		return aipFiles==null?"":aipFiles;
	}
	public void setAipFiles(String aipFiles) {
		this.aipFiles = aipFiles;
	}
	public String getPreSet() {
		return preSet==null?"":preSet;
	}
	public void setPreSet(String preSet) {
		this.preSet = preSet;
	}
	public String getViewUser() {
		return viewUser==null?"":viewUser;
	}
	public void setViewUser(String viewUser) {
		this.viewUser = viewUser;
	}
	public int getArchive() {
		return archive;
	}
	public void setArchive(int archive) {
		this.archive = archive;
	}
	public String getForceOver() {
		return forceOver==null?"":forceOver;
	}
	public void setForceOver(String forceOver) {
		this.forceOver = forceOver;
	}
	public int getWorkLevel() {
		return workLevel;
	}
	public void setWorkLevel(int workLevel) {
		this.workLevel = workLevel;
	}
	public String getDelTime() {
		return delTime==null?"":delTime;
	}
	public void setDelTime(String delTime) {
		this.delTime = delTime;
	}

	public FlowTypeModel getFlowTypeModel() {
		return flowTypeModel;
	}

	public void setFlowTypeModel(FlowTypeModel flowTypeModel) {
		this.flowTypeModel = flowTypeModel;
	}

	public String getATTACH_PRIV() {
		return ATTACH_PRIV;
	}

	public void setATTACH_PRIV(String ATTACH_PRIV) {
		this.ATTACH_PRIV = ATTACH_PRIV;
	}

	public String getSortMainType() {
		return sortMainType;
	}

	public void setSortMainType(String sortMainType) {
		this.sortMainType = sortMainType;
	}

	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	public String getTableId() {
		return tableId;
	}

	public void setTableId(String tableId) {
		this.tableId = tableId;
	}

	public FlowRun() {
	}

	public FlowRun(int runId, String runName, int flowId, String beginUser, String beginTime, int beginDept, String delFlag) {
		this.runId = runId;
		this.runName = runName;
		this.flowId = flowId;
		this.beginUser = beginUser;
		this.beginDept = beginDept;
		this.beginTime = beginTime;
		this.endTime = endTime;
		this.delFlag = delFlag;
	}

	@Override
	public String toString() {
		return "FlowRun{" +
				"rid=" + rid +
				", runId=" + runId +
				", runName='" + runName + '\'' +
				", flowId=" + flowId +
				", beginUser='" + beginUser + '\'' +
				", beginDept=" + beginDept +
				", beginTime='" + beginTime + '\'' +
				", endTime='" + endTime + '\'' +
				", attachmentId='" + attachmentId + '\'' +
				", attachmentName='" + attachmentName + '\'' +
				", delFlag='" + delFlag + '\'' +
				", focusUser='" + focusUser + '\'' +
				", parentRun=" + parentRun +
				", fromUser='" + fromUser + '\'' +
				", aipFiles='" + aipFiles + '\'' +
				", preSet='" + preSet + '\'' +
				", viewUser='" + viewUser + '\'' +
				", archive=" + archive +
				", forceOver='" + forceOver + '\'' +
				", workLevel=" + workLevel +
				", delTime='" + delTime + '\'' +
				", ATTACH_PRIV='" + ATTACH_PRIV + '\'' +
				", flowTypeModel=" + flowTypeModel +
				", userName='" + userName + '\'' +
				", uid='" + uid + '\'' +
				", attachments=" + attachments +
				'}';
	}
}